import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import {Layout} from 'antd'
import App from './App';
import Login from './Login';
import Registration from './Registration';
import './index.css';
import "./theme.less"

ReactDOM.render(
    <BrowserRouter>
        <Layout>
            <main>
                <Switch>
                    <Route exact path="/" component={App}/>
                    <Route path="/login" component={Login}/>
                    <Route path="/sign-up" component={Registration}/>
                    <Route path="/login-error" component={App}/>
                </Switch>
            </main>
        </Layout>
    </BrowserRouter>
    , document.getElementById('root'));
